
/**
 * @description InvInputHeadServiceImpl.java
 * @author dongbin
 * @version 
 * @copyright
 */

package com.erp.common.inv.input.service.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.erp.common.inv.input.dao.InvInputHeadDao;
import com.erp.common.inv.input.service.InvInputHeadService;

/**
 * @description
 * @date 2020年10月8日
 * @author dongbin
 * 
 */
@Service("invInputHeadServiceCommon")
@Transactional(rollbackFor=Exception.class)
public class InvInputHeadServiceImpl implements InvInputHeadService {
    
    //注入Dao
    @Autowired
    @Qualifier("invInputHeadDaoCommon")
    private InvInputHeadDao invInputHeadDao;

    @Override
    public boolean isExistInvInputHeadRelatePO(String headCode) {
        return this.invInputHeadDao.isExistInvInputHeadRelatePO(headCode);
    }
    
    @Override
    public Double getInputQuantityForNotStock(String materialCode) {
        return this.invInputHeadDao.getInputQuantityForNotStock(materialCode);
    }

}
